﻿using System;
using System.IO;
using Microsoft.EntityFrameworkCore;
using Model.Model;

namespace Model;

public class DataDbContent : DbContext
{
    public DbSet<LoginMemoryModel>? LoginMemory { get; set; }
    public DbSet<LoginModel>? LoginUser { get; set; }

    protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
    {
        var configString = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs", "User.db");
        optionsBuilder.UseSqlite("Data Source=" + configString);
    }
}